package com.hxzy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.system.dto.SysUserDTO;
import com.hxzy.system.entity.SysUser;
import com.hxzy.system.vo.SysUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(医生信息表)】的数据库操作Mapper
* @createDate 2023-03-10 11:56:11
* @Entity com.hxzy.entity.SysUser
*/
@Mapper
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据账户查询用户
     * @param account
     * @return
     */
    SysUserVO findByAccount(String account);

    /**
     * 分页查询
     * @param sysUserDTO
     * @return
     */
    List<SysUserVO> search(@Param(value = "dto") SysUserDTO sysUserDTO);

    /**
     * 批量修改用户状态
     * @param ids
     * @return
     */
    int removeByIds(@Param("ids") Long[] ids);

    /**
     * 根据用户编号修改用户状态
     * @param id
     * @param status
     * @return
     */
    int updateStatus(@Param("id") Long id, @Param("status") String status);
}




